import { en as runTimeEn } from '@ibiz-template/runtime'
import { en as modelHelperEn } from '@ibiz-template/model-helper'
import { en as coreEn } from '@ibiz-template/core'

export default {
  // 应用级
  app: {
    noSupport: 'Not supported currently',
    add: 'Add',
    delete: 'Delete',
    retract: 'Retract',
  },
  // 组件
  component: {
    actionToolbar: {
      noSupportDropDown: 'The drop-down mode is not supported',
    },
    rawItem: {
      errorConfig: '{type} type custom parameter configuration error',
      noSupportVideo: 'Your browser does not support video tags',
    },
  },
  // 部件
  control: {
    common: {
      loadMore: 'Load more',
    },
    dataView: { end: 'The end~' },
    form: {
      noSupportDetailType:
        'Form detail type not supported: {detailType} or corresponding provider cannot be found',
      formGroupPanel: {
        showMore: 'Show More',
      },
      formMDctrlForm: {
        noFindProvider: 'Provider not found for form',
      },
      repeaterMultiForm: {
        confirmTitle: 'Tips for deletion',
        confirmDesc: 'Do you want to delete the selection?',
      },
      repeaterSingleForm: {
        errorMessage: 'No repeatedForm',
      },
      formMDctrlRepeater: {
        noSupportStyle: 'Repeater style {repeaterStyle} is currently not supported',
      },
      mdCtrlContainer: {
        noSlot: 'Item slot not provided',
      },
      formMDctrl: {
        errorMessage: 'The content type is currently not supported as {contentType}',
      },
      searchForm: {
        search: 'Search',
        reset: 'Reset',
      },
    },
    list: {
      expand: 'Expand',
      selectedData: 'Selected data',
      end: 'The end~',
    },
    toolbar: {
      noSupportType: 'Toolbar item type: {itemType} is not supported',
    },
    tree: {
      subordinate: 'Subordinate',
    },
    wizardPanel: {
      prev: 'Previous',
      next: 'Next',
      finish: 'Finish',
    },
  },
  // 编辑器
  editor: {
    common: {
      entityConfigErr: 'Please configure entities and entity datasets',
      selectViewConfigErr: 'Please configure the data selection view',
      linkViewConfigErr: 'Please configure the data link view',
      cancel: 'Cancel',
      confirm: 'Confirm',
    },
    cascader: {
      ibizCascader: {
        title: 'Title {index}',
      },
    },
    datePicker: {
      title: 'Select a date',
      cancel: 'Cancel',
      confirm: 'Confirm',
      year: 'Year',
      month: 'Month',
      day: 'Day',
      hour: 'Hour',
      min: 'Minute',
      sec: 'Second',
    },
    dropdownList: {
      noSupportTreePicker: 'Drop-down tree selection is not supported',
      confirm: 'confirm',
    },
    markdown: {
      uploadJsonFormatErr:
        'The configuration of uploadparams did not follow the standard JSON format',
      exportJsonFormatErr:
        'The configuration of exportparams did not follow the standard JSON format',
      downloadFailedErr: 'Download file failed',
      noExistentErr: 'The file stream data does not exist',
    },
    notSupportedEditor: {
      unsupportedType: 'Unsupported editor types - {editorType}',
    },
    stepper: {
      pleaseEnter: 'Please enter',
    },
    upload: {
      uploadJsonFormatErr:
        'The configuration of uploadparams did not follow the standard JSON format',
      exportJsonFormatErr:
        'The configuration of exportparams did not follow the standard JSON format',
    },
  },
  // 多语言
  locale: {
    prompt: 'Prompt',
    switchLanguagePrompt:
      'Switching languages requires refreshing the page, are you sure to switch?',
  },
  mobApp: {
    unauthorizedHandler: {
      noFoundEnvParams: 'Unable to find environment parameter casLoginUrl',
      prohibitAccessPrompt: 'Access to the current account is prohibited',
      exitPrompt: 'Do you want to exit the current account?',
    },
  },
  // 面板组件
  panelComponent: {
    authUserinfo: {
      visitor: 'Visitor',
    },
    navPosIndex: {
      noSupportPrompt: 'Non routing mode navigation placeholder is not supported',
    },
    panelVideoPlayer: {
      noSupportPrompt: 'Your device does not support video tags',
    },
    wfStepTrace: {
      processingComplete: 'Processing completion time',
      processingSteps: 'Processing steps',
      processingPersonnel: 'Processing personnel',
      submissionPath: 'Submission path',
    },
  },
  // 工具
  util: {
    loading: 'Loading',
    notAchieved: 'Not implemented',
    unrealized: 'Unrealized',
    cacheWarningPrompt: 'There is only one item in the cache stack and it cannot be navigated back',
  },
  // 视图
  view: {
    fillInUserName: 'Please fill in user the name',
    fillInPassword: 'Please fill in the password',
    loginFailed: 'Login failed',
    enterUserName: 'Please enter the username',
    enterPassword: 'Please enter the password',
    userName: 'User name',
    password: 'Password',
    login: 'Login',
  },
  // 视图引擎
  viewEngine: {
    closeRemind: 'Close reminder',
    confirmClosePrompt: 'The form data has been modified, are you sure you want to close it?',
    noExistVersionErr: 'The current workflow version does not exist',
    noFoundFormModel: 'Unable to find the model for form {name}',
    missingToolbarModel: 'Missing toolbar component model',
    notReceivedPrompt: 'No appDataElementId received',
  },
  // runTime
  ...runTimeEn,
  // core
  ...coreEn,
  // modelHelper
  ...modelHelperEn,
}
